package com.mzj.saas.mservice.application.repository;

import com.mzj.saas.mservice.application.entity.ApprovalProcess;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface ApprovalProcessRepository extends PagingAndSortingRepository<ApprovalProcess, Long>, JpaSpecificationExecutor<ApprovalProcess>, JpaRepository<ApprovalProcess,Long> {
    ApprovalProcess findByDistrictIdAndProcessStatus(Long districtId,Integer processStatus);

    ApprovalProcess findByDistrictIdAndStatus(Long districtId,Integer status);
}
